Skip to content

fix: change default model to kimi-k2.5-free with updated free models list (#133)#134

Merged
konard merged 8 commits intomainfrom
issue-133-814817b2de1f
Feb 13, 2026
Merged

fix: change default model to kimi-k2.5-free with updated free models list (#133)#134
konard merged 8 commits intomainfrom
issue-133-814817b2de1f

Conversation

@konard
Copy link
Contributor

@konard konard commented Jan 25, 2026

Summary

This PR resolves the issue where the default model opencode/grok-code is no longer available after xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January 2026.

Changes Made

  1. Default model changed from opencode/grok-code to opencode/kimi-k2.5-free in:

    • JavaScript implementation (js/src/index.js)
    • Rust implementation (rust/src/cli.rs)
    • Task tool default model (js/src/tool/task.ts)
    • Provider priority list (js/src/provider/provider.ts)
  2. Free models list updated (in order of recommendation):

    • opencode/kimi-k2.5-free - Best recommended (new default)
    • opencode/minimax-m2.1-free - Good alternative
    • opencode/gpt-5-nano - Reliable free option
    • opencode/glm-4.7-free - Another free option
    • opencode/big-pickle - Basic free model
  3. Documentation updated:

    • MODELS.md - Added deprecation warning for grok-code, updated free models section with new order
    • README.md - Updated example commands
    • js/README.md - Updated all references to the default model and free models list
    • rust/README.md - Updated CLI options documentation
    • EXAMPLES.md - Updated all example commands
  4. Test files updated - All 19 test files updated to use new default model

  5. Case study added - docs/case-studies/issue-133/README.md documents the grok-code discontinuation

Important Note

Grok Code Fast 1 (opencode/grok-code) is no longer included as a free model in OpenCode Zen subscription. Users should switch to one of the recommended free alternatives listed above.

Test Results

  • All 52 Rust tests pass, including the test_args_defaults test that verifies the new default model

User Impact

  • Users running agent without specifying --model will now use opencode/kimi-k2.5-free instead of opencode/grok-code
  • All five free models are available for users to choose from based on their preferences
  • The grok-code model is documented as discontinued free model

Test plan

  • Verify Rust tests pass with new default model
  • Verify CI checks pass
  • Test manually with echo "hi" | agent to confirm new default model works

Closes #133

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #133
@konard konard self-assigned this Jan 25, 2026
This case study documents the "Model grok-code not supported" error that
occurred on 2026-01-25 when xAI ended the free tier for Grok Code Fast 1
on OpenCode Zen.

Key findings:
- Root cause: xAI business decision to end free tier (not a technical bug)
- Impact: All users relying on default grok-code model are affected
- Solutions: Use alternative free models (gpt-5-nano, big-pickle) or paid models

The case study includes:
- Complete timeline of events
- Root cause analysis
- Immediate workarounds
- Long-term solution recommendations
- Related external and internal references

Fixes #133

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title [WIP] Model grok-code not supported docs: add case study for grok-code model not supported error Jan 25, 2026
@konard konard marked this pull request as ready for review January 25, 2026 18:34
@konard
Copy link
Contributor Author

konard commented Jan 25, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $2.745355 USD
  • Calculated by Anthropic: $2.000032 USD
  • Difference: $-0.745323 (-27.15%)
    📎 Log file uploaded as Gist (519KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

Ok, let's switch default model in our code and docs to opencode/gpt-5-nano.

Update all code and docs for grok-code model and don't treat it as free anymore.

@konard konard marked this pull request as draft January 26, 2026 10:15
@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

🤖 AI Work Session Started

Starting automated work session at 2026-01-26T10:15:40.262Z

The PR has been converted to draft mode while work is in progress.

This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback.

xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January
2026. This change:

- Updates default model from opencode/grok-code to opencode/gpt-5-nano
  in JavaScript and Rust implementations
- Marks grok-code as discontinued free model in MODELS.md
- Updates all documentation (README, EXAMPLES, etc.)
- Updates test files to use new default model
- Updates provider priority to put free models first
- Marks issue #133 case study as resolved

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title docs: add case study for grok-code model not supported error fix: change default model from grok-code to gpt-5-nano (#133) Jan 26, 2026
@konard konard marked this pull request as ready for review January 26, 2026 10:23
@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $9.368180 USD
  • Calculated by Anthropic: $4.968937 USD
  • Difference: $-4.399243 (-46.96%)
    📎 Log file uploaded as Gist (1422KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Contributor Author

konard commented Feb 12, 2026

Get latest version of the code from default branch, and use kimi-k2.5-free as default model instead of Grok, make sure we give some message for the user, that grok code is no longer included as free model in OpenCode Zen subscription.

Also double check we have listed in docs of OpenCode Zen subscription and in README.md and other places:

--model kimi-k2.5-free
--model minimax-m2.1-free
--model gpt-5-nano
--model glm-4.7-free
--model big-pickle

In that specific order, where kimi-k2.5-free is the best recommended model, and big-pickle is worst, but still free.

Ensure all changes are correct, consistent, validated, tested and fully meet all discussed requirements (check issue description and all comments in issue and in pull request). Ensure all CI/CD checks pass.

@konard konard marked this pull request as draft February 12, 2026 18:04
@konard
Copy link
Contributor Author

konard commented Feb 12, 2026

🤖 AI Work Session Started

Starting automated work session at 2026-02-12T18:04:54.335Z

The PR has been converted to draft mode while work is in progress.

This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback.

konard and others added 2 commits February 12, 2026 19:05
Resolved conflict in js/README.md by updating to new default model kimi-k2.5-free

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This change implements the updated free models list for OpenCode Zen
subscription as requested in issue #133.

Changes:
- Default model changed from opencode/gpt-5-nano to opencode/kimi-k2.5-free
- Updated free models priority list in order of recommendation:
  1. kimi-k2.5-free (best recommended)
  2. minimax-m2.1-free
  3. gpt-5-nano
  4. glm-4.7-free
  5. big-pickle

- Added deprecation warning for grok-code model noting it is no longer
  included as a free model in OpenCode Zen subscription

Files updated:
- JavaScript implementation (js/src/index.js)
- Rust implementation (rust/src/cli.rs)
- Task tool default model (js/src/tool/task.ts)
- Provider priority list (js/src/provider/provider.ts)
- Documentation (MODELS.md, README.md, js/README.md, rust/README.md, EXAMPLES.md)
- All 19 test files
- Experiment scripts

All 52 Rust tests pass with the new default model.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title fix: change default model from grok-code to gpt-5-nano (#133) fix: change default model to kimi-k2.5-free with updated free models list (#133) Feb 12, 2026
konard and others added 2 commits February 12, 2026 19:10
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard marked this pull request as ready for review February 12, 2026 18:17
@konard
Copy link
Contributor Author

konard commented Feb 12, 2026

🤖 Solution Update Log

Summary of Changes

All requested changes have been implemented:

  1. Default model changed from opencode/gpt-5-nano to opencode/kimi-k2.5-free

  2. Free models list updated (in order of recommendation):

    • --model kimi-k2.5-free (best recommended - new default)
    • --model minimax-m2.1-free
    • --model gpt-5-nano
    • --model glm-4.7-free
    • --model big-pickle
  3. Deprecation warning added for grok-code model noting it is no longer included as a free model in OpenCode Zen subscription

Files Updated

  • Code: js/src/index.js, rust/src/cli.rs, js/src/tool/task.ts, js/src/provider/provider.ts
  • Documentation: MODELS.md, README.md, js/README.md, rust/README.md, EXAMPLES.md
  • Tests: All 19 test files
  • Changeset: Added for version bump

Test Results

  • ✅ All 52 Rust tests pass
  • ✅ All JS CI/CD checks pass
  • ✅ All Rust CI/CD checks pass

Merge Conflicts

Resolved merge conflicts from main branch before implementing changes.


Working session completed. PR is now ready for review.

@konard
Copy link
Contributor Author

konard commented Feb 12, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $7.588329
  • Calculated by Anthropic: $4.235676 USD
  • Difference: $-3.352653 (-44.18%)
    📎 Log file uploaded as Gist (1195KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit e7057ac into main Feb 13, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model grok-code not supported

1 participant